//An Console application which randomly
//chooses suit and value and concatenates
//them into a single card (picture)
import java.util.Random;
class BJ3
{
public static void main(String args[])
{
	int [] hearts = new int [13]; // this does an array
	int [] diamonds = new int [13];
	int [] clubs = new int [13];
	int [] spades = new int [13];
	//System.out.println("First card is a " +hearts[1]);
	int  x,y;
	String suit=" ";      //must give some intial space
	String value="  ";  //for this to work (being exact)
	String card="   ";  //doesn't matter
	int [] player1=new int[5];
	int [] player2=new int[5];
	
	Random Generate1= new Random();
	x=(int)(Generate1.nextDouble()*4)+1; //4because 4 suits
	//System.out.println(x);
	if (x==1)
		suit="H"; //suit is hearts
	if (x==2)
		suit="D"; //suit is diamonds
	if (x==3)
		suit="C"; //suit is clubs
	if (x==4)
		suit="S"; //suit is spades
	y=(int)(Generate1.nextDouble()*13)+1;
	if (y==1)
		value ="01";
	if (y==2)
		value ="02";
	if (y==3)
		value ="03";		
	if (y==4)
		value ="04";
	if (y==5)
		value ="05";
	if (y==6)
		value ="06";	
		if (y==7)
		value ="07";
	if (y==8)
		value ="08";
	if (y==9)
		value ="09";		
	if (y==10)
		value ="10";
	if (y==11)
		value ="11";
	if (y==12)
		value ="12";	
	if (y==13)
		value ="13";	
	card=suit+value +".jpg";
	System.out.println(card);
	//System.out.println(y + " " + suit);  //must have the space to show the characters
	}
}	
